#include <string>
#include <list>
#include <opencv2/opencv.hpp>
//-lopencv_highgui -lopencv_core
#include "imagetostr.hpp"
#include <iostream>

using namespace std;

int main(){
	string fname = "binImage.jpg";
	cv::Mat im = cv::imread(fname);
	imshow("ImageOrig",im);
	//imshow("image",im);
	//cv::waitKey();
	std::list<std::string> imList = cvMatToStr(im,"GRAY");
	cout << "Size " << imList.size() << endl;
	imshow("IMage",strToCvMat(imList));
	cv::waitKey();
}


